package com.Arsanesia.TempleRush.Controllers.Listeners;

import com.Arsanesia.TempleRush.Controllers.World;
import com.Arsanesia.TempleRush.Models.Geenie;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;

public class GameTapListener extends ClickListener {
	private World worldinstance;
	public GameTapListener(){
		super();
	}
	public GameTapListener(World world){
		this();
		this.worldinstance = world;
	}
	@Override
	public void clicked(InputEvent event, float x, float y){
		super.clicked(event, x, y);
		if(worldinstance.isWorldReady()){
			worldinstance.incrementTapCount();
		}
	}
}
